package cn.edu.wynu;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class ConfigClassTest {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext contex =
                new AnnotationConfigApplicationContext(SpringAopConfig.class);
        BookHandler bookHandler = contex.getBean(BookHandler.class);
        bookHandler.addBook();
    }
}
